% This is an example of how to modify the style of your
% thesis.  Check the guidelines for your school/university
% on the required format for a PhD thesis.

% First identify the class:

\NeedsTeXFormat{LaTeX2e}
\ProvidesClass{mythesis}

\DeclareOption*{\PassOptionsToClass{\CurrentOption}{article}}

\ProcessOptions

\LoadClass{article}

% Set paper size and margins
\RequirePackage[a4paper,margin=1in]{geometry}
\usepackage[turkish]{babel}
\usepackage[utf8]{inputenc}
% Make the captions in your floats of the form:
% Fig. 1
% instead of:
% Figure 1



\renewcommand{\tablename}{\textbf{\c Cizelge}}
\renewcommand{\figurename}{\textbf{\c Sekil}}
\renewcommand{\listfigurename}{\textbf{\c SEKİLLER DİZİNİ}}
\renewcommand{\listtablename}{\textbf{ÇİZELGELER DİZİNİ}}
%\renewcommand{\bibname}{\textbf{KAYNAKLAR DİZİNİ}}
%\renewcommand{\figurename}{\textbf{\c Sekil}}
%\renewcommand{\tablename}{\textbf{\c Cizelge}}
%%%   şekil sayfa  yazmak için
\renewcommand\listoffigures{%
    \if@twocolumn
      \@restonecoltrue\onecolumn
    \else
      \@restonecolfalse
    \fi
    \begin{center}
    %\vspace*{-0.7cm}
    \listfigurename \\
    \mbox{}\\
    \mbox{}\\
    \end{center}
     \begin{center}
     \noindent \quad \underline{\textbf{Şekil}} \hfill \underline{\textbf{Sayfa}}\\[0mm]
    \end{center}
    \@starttoc{lof}%
    
    \if@restonecol\twocolumn\fi
    }



%% tablo listesi
\renewcommand\listoftables{%
    \if@twocolumn
      \@restonecoltrue\onecolumn
    \else
      \@restonecolfalse
    \fi
   \begin{center}
   \listtablename \\
   \mbox{}\\
   \mbox{}\\
   \end{center}
   \begin{center}
     \noindent \underline{\textbf{Çizelge}} \hfill \underline{\textbf{Sayfa}}\\[0mm]
    \end{center}
    \@starttoc{lot}%
    \if@restonecol\twocolumn\fi
    }


%önemli olan bu
\renewcommand\tableofcontents{%
    \if@twocolumn
      \@restonecoltrue\onecolumn
    \else
      \@restonecolfalse
    \fi
    \begin{center}
   % \vspace*{-0.4cm}
    \contentsname\\
    \vspace{30pt}
    \end{center}
   \noindent \quad \hfill \underline{\textbf{Sayfa}}\\[12pt]
    \@starttoc{toc}%

    \if@restonecol\twocolumn\fi
    }
%%%%%%%%%%%%% figure numbering reset komutu herbir sectionda şekil numaralarını resetler. ama sonuçta yanlış sayfaya referans veriyor!!!
\@addtoreset{figure}{section}
\renewcommand{\thefigure}{\thesection.\arabic{figure}}
%\def\fnum@figure{\figurename\nobreakspace\thefigure.}
\@addtoreset{table}{section}
\renewcommand{\thetable}{\thesection.\arabic{table}}
%%%%%%%%%%%%%%%%%%%% Şekil altyazısı küçük olsun
\newcommand{\captionfonts}{\footnotesize}
\makeatletter  % Allow the use of @ in command names
\long\def\@makecaption#1#2{%
  \vskip\abovecaptionskip
  \sbox\@tempboxa{{\captionfonts #1: #2}}%
  \ifdim \wd\@tempboxa >\hsize
    {\captionfonts #1: #2\par}
  \else
    \hbox to\hsize{\hfil\box\@tempboxa\hfil}%
  \fi
  \vskip\belowcaptionskip}
\makeatother   % Cancel the effect of \makeatletter

%%%%%%
\def\Rs{{\rm R_{\odot}}}
\def\Ms{{\rm M_{\odot}}}
\def\Ls{{\rm L_{\odot}}}
%%%%
%%%%%%%%%%%%%
\setlength{\parindent}{1cm}
\linespread{1.5}
\setlength{\voffset}{-2.0cm}
\setlength{\topmargin}{.0cm} %üst boşluk
\setlength{\headheight}{.5cm}
\setlength{\headsep}{1.cm}
\setlength{\hoffset}{-0.7cm}
\setlength{\oddsidemargin}{3cm}
\setlength{\evensidemargin}{0cm}
\setlength{\textwidth}{14cm}
\setlength{\textheight}{25.5cm}
%% Redefining the \section command:

%% Redefining the chapter heading styles
%
%% Numbered chapter heading style:
%
%\renewcommand{\@makechapterhead}[1]{%
%  \vspace*{50\p@}%
%  {\parindent \z@ \raggedright \normalfont
%    \hrule                                           % horizontal line
%    \vspace{5pt}%                                    % add some vertical space
%    \ifnum \c@secnumdepth >\m@ne
%        \huge\scshape \@chapapp\space \thechapter    % Chapter followed by number
%        \par\nobreak
%        \vskip 20\p@
%    \fi
%    \interlinepenalty\@M
%    \Huge \scshape #1\par                            % chapter title
%    \vspace{5pt}%                                    % add some vertical space
%    \hrule                                           % horizontal rule
%    \nobreak
%    \vskip 40\p@
%  }}
%
%% Unnumbered chapter heading style:
%
%\renewcommand{\@makeschapterhead}[1]{%
%  \vspace*{50\p@}%
%  {\parindent \z@ \raggedright
%    \normalfont
%    \hrule                                           % horizontal line
%    \vspace{5pt}%                                    % add some vertical space
%    \interlinepenalty\@M
%    \Huge \scshape #1\par                            % chapter title
%    \vspace{5pt}%                                    % add some vertical space
%    \hrule                                           % horizontal line
%    \nobreak
%    \vskip 40\p@
%  }}
%
%% end of file:
%\endinput
%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%   KAPAK KISMI        I%%%%%%%%%%%%%
%\title{\textbf{STEENROD CEB�R�N�N YAPISI VE UYGULAMALARI}}
%\author{\textbf{Havana ARSLAN}}
%\date{}
\makeatletter
%%%%bu k�s�m standart, mesafelerle a�a��daki k�s�mda oynan�yor%%%
\def\clap#1{\hbox to 0pt{\hss #1\hss}}%
\def\ligne#1{%
  \hbox to \hsize{%
    \vbox{\centering #1}}}%
\def\haut#1#2#3{%
  \hbox to \hsize{%
    \rlap{\vtop{\raggedright #1}}%
    \hss
    \clap{\vtop{\centering #2}}%
    \hss
    \llap{\vtop{\raggedleft #3}}}}%
\def\bas#1#2#3{%
  \hbox to \hsize{%
    \rlap{\vbox{\raggedright #1}}%
    \hss
    \clap{\vbox{\centering #2}}%
    \hss
    \llap{\vbox{\raggedleft #3}}}}%
%%%%%%%%%%anlad�g�m kadar�yla burada sayfan�n ayarlar�n� ve yaz� karakterlerini yap�yor
\def\maketitle{%
  \thispagestyle{empty}\vbox to \vsize{%
    \haut{}{\@blurb}{}
    \vfill
    \vspace{45mm}
    \ligne{ \textbf {\@title}}
    \vspace{72pt}
    \ligne{ \@author}
    \vspace{24pt}\ligne{\@advisor}
    \vspace{30pt}\ligne{\@bolum}
     \vspace{18pt}\ligne{\@kod}
      \vspace{2mm}\ligne{\@tarih}
      
    \vspace{3cm}
    \vfill
    \vfill
    \bas{}{\textbf{\@location}}{}
    }%
 % \cleardoublepage
 \newpage
\thispagestyle{empty}
\mbox{}
\newpage
  }
  \def\date#1{\def\@date{#1}}
\def\author#1{\def\@author{#1}}
\def\title#1{\def\@title{#1}}
\def\location#1{\def\@location{#1}}
\def\blurb#1{\def\@blurb{#1}}
\def\bolum#1{\def\@bolum{#1}}
 \def\kod#1{\def\@kod{#1}}
 \def\tarih#1{\def\@tarih{#1}}
  \def\advisor#1{\def\@advisor{#1}}
  \date{\today}

\makeatother

  \title{\Large KARAKTERİSTİK SINIFLARI}
  
  \author{\large \textbf{Hicran KOCAAYAN}}
 \advisor{\textbf{Tez Danışmanı:  Prof. Dr. İsmet KARACA}}
  \bolum{\textbf{Matematik Anabilim Dalı }}
  \kod {\textbf{Bilim Dalı Kodu: 403.04.01}}
   \tarih{  \textbf{Sunuş Tarihi: 19.12.2012}}
   \location{Bornova-İzmir \\ 2012}
    \date{2012}
  \blurb{%
   \textbf{ EGE ÜNİVERSİTESİ FEN BİLİMLERİ ENSTİTÜSÜ\\[18pt]
 (YÜKSEK LİSANS TEZİ) }
    }%

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\def\aj{{AJ}}                   % Astronomical Journal
\def\araa{{ARA\&A}}             % Annual Review of Astron and Astrophys
\def\apj{{ApJ}}                 % Astrophysical Journal
\def\apjl{{ApJ}}                % Astrophysical Journal, Letters
\def\apjs{{ApJS}}               % Astrophysical Journal, Supplement
\def\ao{{Appl.~Opt.}}           % Applied Optics
\def\apss{{Ap\&SS}}             % Astrophysics and Space Science
\def\aap{{A\&A}}                % Astronomy and Astrophysics
\def\aapr{{A\&A~Rev.}}          % Astronomy and Astrophysics Reviews
\def\aaps{{A\&AS}}              % Astronomy and Astrophysics, Supplement
\def\azh{{AZh}}                 % Astronomicheskii Zhurnal
\def\baas{{BAAS}}               % Bulletin of the AAS
\def\jrasc{{JRASC}}             % Journal of the RAS of Canada
\def\memras{{MmRAS}}            % Memoirs of the RAS
\def\mnras{{MNRAS}}             % Monthly Notices of the RAS
\def\pra{{Phys.~Rev.~A}}        % Physical Review A: General Physics
\def\prb{{Phys.~Rev.~B}}        % Physical Review B: Solid State
\def\prc{{Phys.~Rev.~C}}        % Physical Review C
\def\prd{{Phys.~Rev.~D}}        % Physical Review D
\def\pre{{Phys.~Rev.~E}}        % Physical Review E
\def\prl{{Phys.~Rev.~Lett.}}    % Physical Review Letters
\def\pasp{{PASP}}               % Publications of the ASP
\def\pasj{{PASJ}}               % Publications of the ASJ
\def\qjras{{QJRAS}}             % Quarterly Journal of the RAS
\def\skytel{{S\&T}}             % Sky and Telescope
\def\solphys{{Sol.~Phys.}}      % Solar Physics
\def\sovast{{Soviet~Ast.}}      % Soviet Astronomy
\def\ssr{{Space~Sci.~Rev.}}     % Space Science Reviews
\def\zap{{ZAp}}                 % Zeitschrift fuer Astrophysik
\def\nat{{Nature}}              % Nature
\def\iaucirc{{IAU~Circ.}}       % IAU Cirulars
\def\aplett{{Astrophys.~Lett.}} % Astrophysics Letters
\def\apspr{{Astrophys.~Space~Phys.~Res.}}
                % Astrophysics Space Physics Research
\def\bain{{Bull.~Astron.~Inst.~Netherlands}}
                % Bulletin Astronomical Institute of the Netherlands
\def\fcp{{Fund.~Cosmic~Phys.}}  % Fundamental Cosmic Physics
\def\gca{{Geochim.~Cosmochim.~Acta}}   % Geochimica Cosmochimica Acta
\def\grl{{Geophys.~Res.~Lett.}} % Geophysics Research Letters
\def\jcp{{J.~Chem.~Phys.}}      % Journal of Chemical Physics
\def\jgr{{J.~Geophys.~Res.}}    % Journal of Geophysics Research
\def\jqsrt{{J.~Quant.~Spec.~Radiat.~Transf.}}
                % Journal of Quantitiative Spectroscopy and Radiative Transfer
\def\memsai{{Mem.~Soc.~Astron.~Italiana}}
                % Mem. Societa Astronomica Italiana
\def\nphysa{{Nucl.~Phys.~A}}   % Nuclear Physics A
\def\physrep{{Phys.~Rep.}}   % Physics Reports
\def\physscr{{Phys.~Scr}}   % Physica Scripta
\def\planss{{Planet.~Space~Sci.}}   % Planetary Space Science
\def\procspie{{Proc.~SPIE}}   % Proceedings of the SPIE
